package com.Enums;

enum Search{
    HITHER,YON
}
/**
 * @author 13699
 */
public class UpcastEnum {
    public static void main(String[] args) {
        Search[] vals=Search.values();
        Enum e=Search.HITHER;
        for (Enum en:
             e.getClass().getEnumConstants()) {
            System.out.println(en);
        }
    }
}
